package com.xk.androiddemo.model;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import java.util.List;

@Dao
public interface MonitoringDataDao {
    @Insert
    void insert(MonitoringData monitoringData);

    @Update
    void update(MonitoringData monitoringData);

    @Delete
    void delete(MonitoringData monitoringData);

    @Query("SELECT * FROM monitoring_data")
    List<MonitoringData> getAll();

    // 其他查询方法...
}